﻿using Blazor.Diagrams.Core.Models;
using Blazor.Diagrams.Core.Models.Base;
using SvgPathProperties;

namespace ERP.Workflow.Designer.BlazorUI.Models
{
    /// <summary>
    /// 流程线
    /// </summary>
    public class FlowLinkModel : BaseLinkModel
    {
        public FlowLinkModel(PortModel sourcePort, PortModel? targetPort = null) : base(sourcePort, targetPort) { }

        public FlowLinkModel(NodeModel sourceNode, NodeModel? targetNode) : base(sourceNode, targetNode) { }

        public FlowLinkModel(string id, PortModel sourcePort, PortModel? targetPort = null) : base(id, sourcePort, targetPort) { }

        public FlowLinkModel(string id, NodeModel sourceNode, NodeModel? targetNode) : base(id, sourceNode, targetNode) { }

        public string? Color { get; set; }
        public string? SelectedColor { get; set; }
        public double Width { get; set; } = 2;

       // public SVGPathProperties[] Paths { get; set; }

    }
}
